import request from '@/utils/request'

export function getProUserList(query) {
  return request({
    url: '/proprietor/user/getProUserList',
    method: 'get',
    params: query
  })
}

export function addProUser(data) {
  return request({
    url: '/proprietor/user/addProUser',
    method: 'post',
    data
  })
}

export function updateProUser(data) {
  return request({
    url: '/proprietor/user/updateProUser',
    method: 'put',
    data
  })
}

export function deleteProUser(id) {
  return request({
    url: '/proprietor/user/deleteProUser/' + id,
    method: 'delete'
  })
}

export function getAuthority(id) {
  return request({
    url: '/proprietor/user/getAuthority/' + id,
    method: 'get'
  })
}
